WordPressCS\WordPress\Sniff D

Total Complexity 366
Dependencies 3
Dependents 2
Total lines 3,389
Lines of code 1,231
Logical lines of code 684
Comment lines 1,246
Methods 51
Properties 26

Methods 51

Method Rating Maintainability Complexity Lines of code
is_validated()
D
27
40 139
has_nonce_check()
C
36 28 73
is_use_of_global_constant()
B
37 20 72
has_whitelist_comment()
B
40 19 59
get_function_call_parameters()
B
40 19 58
is_sanitized()
B
39 18 63
is_wpdb_method_call()
B
43 16 48
is_test_class()
A
47 12 37
is_in_function_call()
A
48 11 32
is_comparison()
A
46 10 43
is_short_list()
A
47 10 39
does_function_call_have_parameters()
A
49 10 31
determine_namespace()
A
50 10 30
get_list_variables()
A
48 9 35
find_list_open_close()
A
50 9 30
is_in_isset_or_empty()
A
50 8 28
get_declared_namespace_name()
A
50 8 28
is_class_property()
A
51 8 26
get_array_access_keys()
S
50 7 28
is_assignment()
S
51 6 29
is_token_in_test_method()
S
55 6 19
is_token_namespaced()
S
55 6 19
merge_custom_array()
S
59 6 15
find_array_open_close()
S
55 5 20
is_foreach_as()
S
55 5 19
get_interpolated_variables()
S
61 5 11
is_function_deprecated()
S
57 4 16
valid_direct_scope()
S
60 4 14
is_in_array_comparison()
S
60 4 14
is_only_sanitized()
S
62 4 12
is_class_object_call()
S
61 4 12
get_use_type()
S
58 3 15
throwMessage()
S
61 3 12
is_class_constant()
S
62 3 11
get_wp_version_from_cl()
S
66 3 8
get_last_ptr_on_line()
S
63 3 10
is_safe_casted()
S
62 2 12
strip_interpolated_variables()
S
70 2 6
get_function_call_parameter_count()
S
70 2 6
get_function_call_parameter()
S
68 2 7
get_array_access_key()
S
68 2 7
process()
S
76 1 4
process_token()
S
100 1 0
is_in_type_test()
S
79 1 3
get_snake_case_name_suggestion()
S
68 1 7
string_to_errorcode()
S
79 1 3
addFixableMessage()
S
77 1 3
addMessage()
S
77 1 3
strip_quotes()
S
79 1 3
init()
S
76 1 4
add_unslash_error()
S
68 1 8